package cn.com.git.admin.dao;

import cn.com.git.admin.dao.model.SysUser;
import cn.com.git.admin.service.query.SysUserListQuery;

import java.util.List;

/**
  * SysUserDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/8
*/
public interface SysUserDAO {

    SysUser selectById(Integer id);

    SysUser selectOne(SysUserListQuery query);

    int countLimit(SysUserListQuery query);

    List<SysUser> selectList(SysUserListQuery query);

    Integer insertOne(SysUser record);

    List<SysUser> insertList(List<SysUser> list);

    Integer updateOne(SysUser record);

    Integer updateLimit(SysUser record, SysUserListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(SysUserListQuery query);
}